package com.link2room.soundwave.controller.api;

import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.soundwave.dto.param.api.MemeberCardPayApiParamDto;
import com.link2room.soundwave.util.HandlerUtil;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by LN on 2017/7/26.10:37
 */
@Api(tags = "PMS会员信息")
@RestController
@RequestMapping("/api/PMSReservations")
public class PMSReservationApiController {

    @RequestMapping(value ="/MemberCardPay",method = RequestMethod.POST)
    public BaseResultDto getPmsInfo(
            @RequestBody MemeberCardPayApiParamDto memeberCardPayApiParamDto
    ) throws Exception {
        BaseResultDto resDto = new BaseResultDto();
        resDto.setResultCode(0);
        HandlerUtil.pmsReservationHandler().memberCardPayHandler(memeberCardPayApiParamDto);
        return resDto;
    }


}
